package com.tansuo365.test1.service.otherservice;

import com.tansuo365.test1.bean.otherbean.ShengouDetails;
import com.tansuo365.test1.bean.otherbean.ShengouZong;

import java.util.List;

public interface ShengouZongService {

    /**
     * 获取当天最大shengou单号
     * @return
     */
    String getTodayMaxShengouDanNumber();
    //遍历获取申购总表
    List<ShengouZong> listShengouZong(ShengouZong shengouZong);

    List<ShengouZong> listShengouZongWhereNotFull(ShengouZong shengouZong);

    int deleteByPrimaryKey(Integer id);

    int deleteBatchByPKArr(Integer[] ids);

    int insertSelective(ShengouZong shengouZong);

    //添加申购单 以及所有申购单物料
    int saveZongAndDetails(ShengouZong shengouZong, List<ShengouDetails> shengouDetailsList);

    ShengouZong selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShengouZong shengouZong);

    //candelete字段更改到1
    int updateCanDeleteByDanhao(String shengoudanhao);

    //candelete字段更改到0
    int updateCanDeleteToCan(String shengoudanhao);

    List<String> listShengouDanhao(Integer[] ids);

}
